package com.wj.core.dto;

import java.io.Serializable;
import java.util.Arrays;

/**
 * @author: wangjun
 * @create: 2018-06-01 
 **/
public class Response implements Serializable {

  private static final long serialVersionUID = -4074981231353331861L;

  private String requestId;

  private Throwable error;

  private byte[] data;

  public String getRequestId() {
    return requestId;
  }

  public void setRequestId(final String requestId) {
    this.requestId = requestId;
  }

  public byte[] getData() {
    return data;
  }

  public void setData(final byte[] data) {
    this.data = data;
  }

  public Throwable getError() {
    return error;
  }

  public void setError(final Throwable error) {
    this.error = error;
  }

  @Override
  public String toString() {
    return "Response{" +
        "requestId='" + requestId + '\'' +
        ", error=" + error +
        ", data=" + Arrays.toString(data) +
        '}';
  }
}
